import request from '@/utils/request'
import upload from '@/utils/upload'

// 获取信息
export function countInfo() {
	return request({
		'url': '/withdrawal/countInfo',
		'method': 'get'
	})
}

export function withdrawal(data) {
	return request({
		'url': '/withdrawal/withdrawal',
		'method': 'post',
		'data': data
	})
}


export function getList(data) {
	return request({
		'url': '/withdrawal/list',
		'method': 'get',
		'data': data
	})
}



//图片上传
export function uploadImg(data) {
	return upload({
		url: '/common/upload',
		name: data.name,
		filePath: data.filePath
	})
}